<%@include file="taglib_includes.jsp" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<link href="css/style.css" rel="stylesheet" type="text/css" />

<title><spring:message code="App.Title"></spring:message> </title>

</head>
<body>
    <h1>Persons: </h1>
	
	        <table>
		<tr>
			<th>Id</th>
			<th>First name</th>			
			<th>Last name</th>	
			<th>Birthday</th>	
			<th>Address</th>	
			<th>Email</th>	
			<th>Telephone number</th>	
			<th>Mobile number</th>	                        
		</tr>
		<c:if test="${empty SEARCH_PERSONS_RESULTS_KEY}">
		<tr>
			<td colspan="8">No Results found</td>
		</tr>
		</c:if>
		<c:if test="${! empty SEARCH_PERSONS_RESULTS_KEY}">
			<c:forEach var="person" items="${SEARCH_PERSONS_RESULTS_KEY}">		
		    <tr>
				<td><c:out value="${person.id}"></c:out></td>
				<td><c:out value="${person.firstName}"></c:out></td>
				<td><c:out value="${person.lastName}"></c:out></td>
				<td><c:out value="${person.birthday}"></c:out></td>
				<td><c:out value="${person.address}"></c:out></td>
				<td><c:out value="${person.email}"></c:out> </td>
				<td><c:out value="${person.telephoneNr}"></c:out></td>
				<td><c:out value="${person.mobileNr}"></c:out></td>				
			</tr>
			</c:forEach>
		</c:if>				
	</table>	
    
    <a href="https://www.google.com">Google</a>
	       		
</body>
</html>